package org.devops

// saltstack
def SaltDeploy(hosts, func) {

    sh "w"
    sh "salt \"${hosts}\" ${func} -l all"
    sh "salt \"${hosts}\" ${func}"
}

// ansible
def AnsibleDeploy(hosts, func) {
    sh "w"
    sh "ansible ${func} ${hosts}"
}